package com.springark.ms.sampleexternals.config;

import cn.hankchan.utils.HttpClientApi;
import cn.hankchan.utils.client.PooledHttpClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hankchan
 * @since 2019/5/9
 */
@Configuration
public class SpringConfiguration {

    @Bean(initMethod = "init", destroyMethod = "shutdown")
    public HttpClientApi httpClientApi() {
        return new PooledHttpClient(true);
    }
}
